home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / BASE.H < prev    next >
C/C++ Source or Header  |  1995-07-23  |  5KB  |  160 lines

  1. #ifndef _BASE_H_
  2. #define _BASE_H_
  3. //----------------------------------------------------------------------------
  4. //                            MODULE DESCRIPTION
  5. //
  6. //  Module:    base.h
  7. //   Title:    Base library
  8. //  Notice:    John M. Weeder
  9. //                 Copyright (c) 1993. All rights reserved.
  10. //             This module contains proprietary information and should be 
  11. //                treated as confidential.
  12. //
  13. //----------------------------------------------------------------------------
  14. //                           MAINTENANCE HISTORY
  15. //
  16. // $Workfile$
  17. // $Revision$
  18. //   $Author$
  19. //     $Date$
  20. //      $Log$    
  21. //
  22. //----------------------------------------------------------------------------
  23. //                             MODULE NARRATIVE
  24. //
  25. //
  26. //    This module is the primary header file which is included in all 
  27. //    application modules. It includes all other header files as necessary.
  28. //
  29. //    In order to efficiently use pre-compiled header files, programmers should
  30. //    attempt to keep the number and order of header files consistent.
  31. //
  32. //    THIS HEADER FILE SHOULD ALWAYS BE INCLUDED FIRST IN ANY MODULE!!!
  33. //
  34. //    The code in this module should be written entirely in C. 
  35. //    Do not use any C++ constructs.
  36. //
  37. //    This module is portable to:
  38. //        DOS 3.X+
  39. //        MS Windows 3.X+
  40. //        OS/2 2.X+
  41. //        OS/2 2.0 PM
  42. //        SCO UNIX.
  43. //
  44. //    The following compilers are supported:
  45. //        MSC 6.0A
  46. //        MSC/C++ 7.0
  47. //        Borland C++ 3.1 for DOS
  48. //        Borland C++ 1.0 for OS/2 2.X
  49. //        SCO UNIX cc
  50. //
  51. //----------------------------------------------------------------------------
  52.  
  53.  
  54. //----------------------------------------------------------------------------
  55. //    Base library header files
  56. //----------------------------------------------------------------------------
  57. #include    <bsdefn.h>                            // Definitions file
  58. #include    <bsos.h>                                // Expand standard directives
  59.  
  60.  
  61. //----------------------------------------------------------------------------
  62. //    C header files
  63. //----------------------------------------------------------------------------
  64. #include <stdio.h>                            // Standard 'C' Headers.
  65. #include <stdlib.h>
  66. #include <stddef.h>
  67. #include <string.h>
  68. #include <ctype.h>
  69. #include <stdarg.h>
  70. #include <time.h>
  71. #include <fcntl.h>
  72. #include <errno.h>
  73. #include <malloc.h>
  74.  
  75. #if OS_UNIX
  76. #include <sys/locking.h>
  77. #include <sys/stat.h>
  78. #include <sys/types.h>
  79. #include <prototypes.h>
  80. #pragma pack(1)
  81. #else
  82. #include <search.h>
  83. #include <sys\locking.h>
  84. #include <sys\stat.h>
  85. #include <sys\types.h>
  86. #endif
  87.  
  88. #if COMPILER_BORLAND || COMPILER_MSC
  89. #include <io.h>
  90. #include <share.h>
  91. #include <process.h>
  92. #include <conio.h>
  93. #include <dos.h>
  94. #include <direct.h>                            // Also include 'dir.h'
  95. #if OS_DOS || OS_WINDOWS
  96. #include    <bios.h>
  97. #endif
  98. #endif
  99.  
  100. //----------------------------------------------------------------------------
  101. //    OS/2 header files.
  102. //----------------------------------------------------------------------------
  103. #if OS_OS2 || OS_PM                            // OS/2 2.X w/ Borland C++
  104. #    if OS_PM == 0
  105. #        define INCL_NOPMAPI                    // No presentation manager!
  106. #    endif
  107. #    define INCL_DOS
  108. #    include <os2.h>
  109. #endif
  110.  
  111.  
  112. //----------------------------------------------------------------------------
  113. //    Windows header files
  114. //    Not currently implemented!
  115. //----------------------------------------------------------------------------
  116. #if OS_WINDOWS                                    // Windows 3.1+
  117. #include <windows.h>
  118. #include <commdlg.h>
  119. #include <dde.h>
  120. #include <print.h>
  121. #endif
  122.  
  123.  
  124. //----------------------------------------------------------------------------
  125. //    Miscellaneous base library header files
  126. //----------------------------------------------------------------------------
  127. #include        <bsmacro.h>                                                     // Base macros
  128. #include    <bsport.h>                            // Portability stuff
  129. #include    <bsfn.h>                                // Function modifiers
  130. #include    <bstypes.h>                            // Data types
  131. #include        <limits.h>
  132.  
  133.  
  134. //----------------------------------------------------------------------------
  135. //    Copyright string
  136. //----------------------------------------------------------------------------
  137. #include <bscprite.h>
  138.  
  139.  
  140. //----------------------------------------------------------------------------
  141. //    Prototypes and miscellaneous
  142. //----------------------------------------------------------------------------
  143. #if COMPILE_CPP
  144. extern "C"
  145.     {
  146.     #include    <bsproto.h>                        //    Base library function prototypes
  147.     }
  148. #else
  149. #    include    <bsproto.h>                        //    Base library function prototypes
  150. #endif
  151.  
  152. #include    <bserror.h>                            //    Error codes
  153. #include    <bskey.h>                            //    DOS keyboard scan codes
  154.  
  155.  
  156. //----------------------------------------------------------------------------
  157. //------------------------------- End of File --------------------------------
  158. //----------------------------------------------------------------------------
  159. #endif                                            // _BASE_H_
  160.